
#import <UIKit/UIKit.h>

// We have
// 1. declared a property for the label
// 2. created accessor methods
// 3. created action method


@interface Example2ViewController : UIViewController {
    // Declare a label property
    // UILabel => Read only text view object. i.e. a label object
    // this is an outlet
    UILabel *labelsText;
}

// @property => builds accessor and settor methods for you
// nonatomic = in OS 10 dont create extra code for multithreaded apps
// retain = keep in memory
@property(nonatomic, retain) IBOutlet UILabel *labelsText;
// Method called when button is clicked.
-(IBAction) clicked:(id)sender;

@end

